﻿using System;
using olierFrm.WebFormDev;

namespace WebFormDev.DataObjectPack
{
    public partial class IFrameDataObject : System.Web.UI.Page
    {

        protected void Page_PreInit(object sender, EventArgs e)
        {
            ManageSystem.IsLogin();
            ManageSystem.SetTheme(Page);
            //没有QueryName只显示菜单，为了重复利用该页面（系统首页和StdQuery）

        }

        protected void Page_Load(object sender, EventArgs e)
        {

            //ReceiptsConfig rc = new ReceiptsConfig(Request.QueryString["ModuleID"]);

            //DBFrm.FrameWork.DataObject.DataObjectSQL dos = new DBFrm.FrameWork.DataObject.DataObjectSQL(rc.Config.ObjectName);

            //foreach (var p in dos.DataObjectParams)
            //{
            //    if (Request.QueryString[p.ParamName] != null)
            //        dos.SetParam(p.ParamName, Request.QueryString[p.ParamName]);
            //}
            //var dosDS = dos.ExecuteSQL();

            //for (int i = 0; i < dosDS.Tables.Count; i++)
            //{
            //    dosDS.Tables[i].BindCaptionToDataTable();
            //}

            //UIFrm.BS.WebForm.DataObject2 uiDO = new UIFrm.BS.WebForm.DataObject2();
            //ASPxPageControl pageControl = new ASPxPageControl();
            //pageControl.ContentStyle.BorderLeft.BorderStyle = BorderStyle.None;
            //pageControl.ContentStyle.BorderRight.BorderStyle = BorderStyle.None;
            //pageControl.ContentStyle.Paddings.Padding = 0;
            //uiDO.MasterControls(pageControl);
            
            //this.form1.Controls.Add(pageControl);


        }
    }
}